package tcm.com.gistone.database.mapper;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tcm.com.gistone.database.entity.Section;
import tcm.com.gistone.database.entity.SpecialBook;

import java.util.List;

public interface SpecialBookMapper {
    int deleteByPrimaryKey(Long sBookId);

    int insert(SpecialBook record);

    int insertSelective(SpecialBook record);

    SpecialBook selectByPrimaryKey(Long sBookId);

    int updateByPrimaryKeySelective(SpecialBook record);

    int updateByPrimaryKey(SpecialBook record);

    @Select("select book_id from tb_special_book where special_id = #{specialId}")
    List<Long> selectBySpecial(long specialId);

    @Select("select book_id from tb_special_book}")
    List<Long> selectAll();
}